<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>填写试用报告</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />

</head>
<body>
    <header class="aui-bar aui-bar-nav aui-bar-light" id="header">
    <a class="aui-pull-left aui-btn" tapmode onclick="api.closeWin();">
        <span class="aui-iconfont aui-icon-left" style="color:#ff4285"></span>
    </a>
    <div class="aui-title" style="color:#ff4285">填写试用报告</div>

</header>
<footer class="aui-bar aui-bar-tab" id="footer" style="background:#ff4285;color:#fff;line-height:55px;" onclick="fnSubmitVal();">
    <div>提交试用报告<div>
</footer>
</body>
<script type="text/javascript" src="../script/api.js" ></script>
<script type="text/javascript" src="./conf/config.js"></script>
<script type="text/javascript" src="./js/common.js"></script>
<script type="text/javascript" src="../script/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
apiready = function() {
    var header = $api.byId('header');//获取节点
    var footer = $api.byId('footer');//获取节点
    $api.fixStatusBar($api.dom('header'));
    api.setStatusBarStyle({
        style: 'dark',
       color:'transparent'
    });
    var headerH = $api.offset(header).h;//获取header的高
    var footerH = $api.offset(footer).h;//获取header的高
    api.openFrame({//打开一个frame
        name: 'edit_fill_in_the_trial_report_frame',
        url: './edit_fill_in_the_trial_report_frame.html',
        rect: {//定位下面
            x: 0,
            y: headerH,
            w: 'auto',
            h: api.winHeight - footerH - headerH
        },
        pageParam: {//需要传到下个页面的参数
            orderId: api.pageParam.orderId,
            goodName: api.pageParam.goodName
        },
        bounces: true//弹跳开启
    });
};
function fnSubmitVal(){

    var SubmitVal = 'fnSubmit();';
    api.execScript({
        frameName: 'edit_fill_in_the_trial_report_frame',
        script: SubmitVal
    });


}



</script>
</html>
